# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-giturlparse
pkgver=0.9.2
pkgrel=0
pkgdesc="Parse and Rewrite git URLs"
url="https://github.com/nephila/giturlparse"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/nephila/giturlparse/archive/0.9.2.tar.gz"
builddir="$srcdir/giturlparse-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}

sha512sums="b82bb96f4b0a242364a0173b15fefc507dec85c176aa0fc679c4554f71ec6a11b18b8886e34b5ce080759d56070a9126f54167dda89be592db0f6df4728bfd4c  py3-giturlparse-0.9.2.tar.gz"
